package com.eliza.net.activity

import android.Manifest
import android.os.Bundle
import android.widget.Button
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import com.eliza.library.tools.NetWorkManager
import com.eliza.library.tools.PermissionUtils
import com.eliza.net.R


class WifiActivity : AppCompatActivity() {
    private val context = this
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_wifi)
        val tv = findViewById<TextView>(R.id.wifi_info_tv)
        val permissions = arrayOf(
            Manifest.permission.ACCESS_NETWORK_STATE,
            Manifest.permission.CHANGE_NETWORK_STATE,
            Manifest.permission.INTERNET,
        )
        PermissionUtils.isGetPermissions(context, permissions)
        findViewById<Button>(R.id.wifi_open_btn).setOnClickListener {
            NetWorkManager.getBaseNetInfo(context)
        }

    }


}

